
	<!-- Header -->
		<div id="hulu">
			<div id="hulu_kiri"></div>
			<div id="hulu_kanan"></div>
		</div>
	<!-- Server status -->

	<!-- End server status -->

	<!-- Main nav -->
	<nav id="main-nav">
		<ul class="container_12">
			
			<li class="home current">
				<ul> 
						
						<li class=" "><?=anchor('dashboard','Home')?></li>
						<!--
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Setup</a>
							<div class="menu">
								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>
									<?php
										# Menu Setup
										#------------------------------------------------------------------------------
										
										if ($privilage['karyawan'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('karyawan','Karyawan').'</li>'; 
										}else{
											echo '<li class="icon_blog">Karyawan</li>'; 
										}
										
										if ($privilage['kategori'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('kategori','Kategori Barang').'</li>'; 
										}else{
											echo '<li class="icon_blog">Kategori Barang</li>'; 
										}
										
										if ($privilage['golongan'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('golongan','Golongan Barang').'</li>'; 
										}else{
											echo '<li class="icon_blog">Golongan Barang</li>';
										}
										
										if ($privilage['jenis'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('jenis','Jenis Barang').'</li>'; 
										}else{
											echo '<li class="icon_blog">Jenis Barang</li>'; 
										}
										
										if ($privilage['satuan'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('satuan','Satuan Barang').'</li>'; 
										}else{
											echo '<li class="icon_blog">Satuan Barang</li>'; 
										}
										if ($privilage['kabupaten'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('kabupaten','Kabupaten').'</li>'; 
										}else{
											echo '<li class="icon_blog">Kabupaten</li>'; 
										}
										if ($privilage['kecamatan'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('kecamatan','Kecamatan').'</li>'; 
										}else{
											echo '<li class="icon_blog">Kecamatan</li>'; 
										}										
										if ($privilage['area'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('area','Area / Wilayah').'</li>'; 
										}else{
											echo '<li class="icon_blog">Area / Wilayah</li>'; 
										}
										 

									?>
								</ul>
							</div>
						</li>
						-->
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Master</a>
							<div class="menu">
								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>
									<?php
								
										if ($privilage['area'][0] == 1){ 

										echo '<li class="icon_blog">'.anchor('master_akun','Master Akun').'</li>'; 

										}else{

										echo '<li class="icon_blog">Master Akun</li>'; 

										}
										
									?>
									
									
								</ul>
							</div>
						</li>

                         	<li class="with-menu"><a href="javascript:void(0)" title="My settings">Anggaran</a>

							<div class="menu">

								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>

									<?php

										if ($privilage['program'][0] == 1){
											echo '<li class="icon_blog">'.anchor('program/index','Program').'</li>';
										}else{
											echo '<li class="icon_blog">Program</li>';
										}


										if ($privilage['kegiatan'][0] == 1){
											echo '<li class="icon_blog">'.anchor('kegiatan/index','Kegiatan').'</li>';
										}else{
											echo '<li class="icon_blog">Kegiatan</li>';
										}

                                        if ($privilage['rba'][0] == 1){

											echo '<li class="icon_blog">'.anchor('rba/index','Rencana Bisnis dan Anggaran').'</li>';

										}else{

											echo '<li class="icon_blog">Rencana Bisnis dan Anggaran</li>';

										}
										
										 if ($privilage['rba_def'][0] == 1){

											echo '<li class="icon_blog">'.anchor('rba_def/index','RBA Definitif').'</li>';

										}else{

											echo '<li class="icon_blog">RBA Definitif</li>';

										}

										?>

								</ul>

							</div>

						</li>
						
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Pengelolaan Kas</a>

							<div class="menu">

								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>

									<?php
									


			
									
										if ($privilage['penerimaan_kas'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('penerimaan_kas/index','Penerimaan Kas').'</li>'; 
										}else{
											echo '<li class="icon_blog">Penerimaan Kas</li>'; 
										}

										
										if ($privilage['pengeluaran_kas'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('pengeluaran_kas/index','Pengeluaran Kas').'</li>'; 
										}else{
											echo '<li class="icon_blog">Pengeluaran Kas</li>'; 
										}	

                                        if ($privilage['mutasi_kas'][0] == 1){

											echo '<li class="icon_blog">'.anchor('mutasi_kas/index','Mutasi Kas').'</li>';

										}else{

											echo '<li class="icon_blog">Mutasi Kas</li>';

										}
										
										?>




                                        <li class="sep"></li>
                                       	<?php
                                         if ($privilage['kas_awal'][0] == 1){
											echo '<li class="icon_blog">'.anchor('kas_awal/index','Saldo Awal').'</li>';
										}else{
											echo '<li class="icon_blog">Saldo Awal</li>';
										}
										
										?>

									
								</ul>

							</div>

						</li>
						
						

						<li class="with-menu"><a href="javascript:void(0)" title="JURNAL">Jurnal</a>

							<div class="menu">

								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>

									<?php

										if ($privilage['jurnal_umum'][0] == 1){
											echo '<li class="icon_blog">'.anchor('jurnal_umum/index','Jurnal Umum').'</li>';
										}else{
											echo '<li class="icon_blog">Jurnal Umum</li>';
										}



										if ($privilage['jurnal_penyesuaian'][0] == 1){
											echo '<li class="icon_blog">'.anchor('jurnal_penyesuaian/index','Jurnal Penyesuaian').'</li>';
										}else{
											echo '<li class="icon_blog">Jurnal Penyesuaian</li>';
										}


										if ($privilage['jurnal_koreksi'][0] == 1){
											echo '<li class="icon_blog">'.anchor('jurnal_koreksi/index','Jurnal Koreksi').'</li>';
										}else{
											echo '<li class="icon_blog">Jurnal Koreksi</li>';
										}
										?>
										<li class="sep"></li>

								</ul>

							</div>

						</li>
						

						<li class="with-menu"><a href="javascript:void(0)" title="Buku Besar">Buku Besar</a>

							<div class="menu">

								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>

									<?php

										if ($privilage['buku_besar'][0] == 1){
											echo '<li class="icon_blog">'.anchor('buku_besar/index','Buku Besar').'</li>';
										}else{
											echo '<li class="icon_blog">Buku Besar</li>';
										}
                                     ?>

										<li class="sep"></li>

								</ul>

							</div>

						</li>
						
						
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Laporan</a>

							<div class="menu">

								<img src="images/menu-open-arrow.png" width="16" height="16">

								<ul>
                                     <?php
                                     
                                        if ($privilage['laporan_neraca'][0] == 1){

											echo '<li class="icon_blog">'.anchor('laporan_neraca','Laporan Neraca').'</li>';

										}else{

											echo '<li class="icon_blog">Laporan Neraca</li>';

										}
										
										if ($privilage['laporan_neraca'][0] == 1){

											echo '<li class="icon_blog">'.anchor('laporan_arusa_kas','Laporan Arus Kas').'</li>';

										}else{

											echo '<li class="icon_blog">Laporan Arus Kas</li>';

										}
										
										if ($privilage['laporan_laba_rugi'][0] == 1){

											echo '<li class="icon_blog">'.anchor('laporan_laba_rugi','Laporan Surflus Defisit').'</li>';

										}else{

											echo '<li class="icon_blog">Laporan Surflus Defisit</li>';

										}
										
                                       if ($privilage['laporan_neraca'][0] == 1){

											echo '<li class="icon_blog">'.anchor('laporan_realisasi_anggaran','Laporan Realisasi Anggaran').'</li>';

										}else{

											echo '<li class="icon_blog">Laporan Realisasi Anggaran</li>';

										}
										
                                     ?>





								</ul>

							</div>

						</li>
						<!--
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Grafik</a>
							<div class="menu">
								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>
									<?php
										if ($privilage['grafik_pembelian'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('grafik_pembelian','Grafik Pembelian').'</li>'; 
										}else{
											echo '<li class="icon_blog">Grafik Pembelian</li>'; 
										}
										
										if ($privilage['grafik_penjualan'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('grafik_penjualan','Grafik Penjualan').'</li>'; 
										}else{
											echo '<li class="icon_blog">Grafik Penjualan</li>'; 
										}
									?>
								</ul>
							</div>
						</li>
						 -->
						 <!--
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Layanan</a>
							<div class="menu">
								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>
									<?php
										if ($privilage['layanan_jasa_kredit'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('layanan_jasa_kredit','Layanan  Pihak Ke 3').'</li>'; 
										}else{
											echo '<li class="icon_blog">Layanan  Pihak Ke 3</li>'; 
										}
										
										if ($privilage['layanan_jasa_speedy'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('layanan_jasa_speedy','Layanan  Speedy').'</li>'; 
										}else{
											echo '<li class="icon_blog">Layanan  Speedy</li>'; 
										}
										
										if ($privilage['layanan_jasa_listrik'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('layanan_jasa_listrik','Layanan Listrik').'</li>'; 
										}else{
											echo '<li class="icon_blog">Layanan Listrik</li>'; 
										}
										
										if ($privilage['layanan_jasa_pdam'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('layanan_jasa_pdam','Layanan PDAM').'</li>'; 
										}else{
											echo '<li class="icon_blog">Layanan PDAM</li>'; 
										}
										
										if ($privilage['layanan_jasa_telepon'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('layanan_jasa_telepon','Layanan Telepon').'</li>'; 
										}else{
											echo '<li class="icon_blog">Layanan Telepon</li>'; 
										}
									?>
								</ul>
							</div>
						</li>
						-->
						<li class="with-menu"><a href="javascript:void(0)" title="My settings">Maintenance</a>
							<div class="menu">
								<img src="images/menu-open-arrow.png" width="16" height="16">
								<ul>
									<!--<li class="icon_address"><a href="javascript:void(0)">Backup Database</a> </li>
									<li class="icon_export"><a href="javascript:void(0)">Restore Database</a> </li>
									<li class="icon_refresh"><a href="javascript:void(0)">Remove Transaksi</a></li>
									<li class="icon_refresh"><a href="javascript:void(0)">Reset Point Member</a></li>
									<li class="sep"></li>-->
									<?php
										if ($privilage['users_level'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('users_level','User Level').'</li>'; 
										}else{
											echo '<li class="icon_blog">User Level</li>'; 
										}
										
										/* if ($privilage['users'][0] == 1){ 
											echo '<li class="icon_blog">'.anchor('users','User').'</li>'; 
										}else{
											echo '<li class="icon_blog">User</li>'; 
										} */
									?>
								</ul>
							</div>
						</li>
				</ul>
			</li>
		</ul>
	</nav>
	<!-- End main nav -->
	
	<!-- Sub nav -->
	<div id="sub-nav"><div class="container_12">
		
		
	</div></div>
	<!-- End sub nav -->
	
	<!-- Status bar -->
	<div id="status-bar"><div class="container_12">
	
		<ul id="status-infos">
			<li class="spaced">Logged as: <strong><?=logged_as()?></strong></li>
			<!--
			<li>
				<a href="javascript:void(0)" class="button" title="1 messages"><img src="images/icons/fugue/mail.png" width="16" height="16"> <strong>1</strong></a>
				<div id="messages-list" class="result-block">
					<span class="arrow"><span></span></span>
					
					<ul class="small-files-list icon-mail">
						<li>
							<a href="javascript:void(0)"><strong>10:15</strong> Please update...<br>
							<small>From: System</small></a>
						</li>
					</ul>
					<p id="messages-info" class="result-info"><a href="javascript:void(0)">Go to inbox &raquo;</a></p>
				</div>
			</li>
			<li>
				<a href="javascript:void(0)" class="button" title="2 comments"><img src="images/icons/fugue/balloon.png" width="16" height="16"> <strong>2</strong></a>
				<div id="comments-list" class="result-block">
					<span class="arrow"><span></span></span>
					
					<ul class="small-files-list icon-comment">
						<li>
							<a href="javascript:void(0)"><strong>Jane</strong>: I don't think so<br>
							<small>On <strong>Post title</strong></small></a>
						</li>
						<li>
							<a href="javascript:void(0)"><strong>Ken_54</strong>: What about using a different...<br>
							<small>On <strong>Post title</strong></small></a>
						</li>
					</ul>
					
					<p id="comments-info" class="result-info"><a href="javascript:void(0)">Manage comments &raquo;</a></p>
				</div>
			</li>
			-->
			<li>
				<?=anchor('auth/logout', '<span class="smaller">LOGOUT</span>', array('class'=>'button red', 'title'=>'Logout'))?>
			</li>
		</ul>
		
		<ul id="breadcrumb">
			<li>&nbsp;&nbsp;<?=date('d/m/Y').'&nbsp;&nbsp;'.date('H:i');?>&nbsp;&nbsp;</li>
		</ul>
		<!--
		<ul id="breadcrumb">
			<li><a href="javascript:void(0)" title="Home">Home</a></li>
			<li><a href="javascript:void(0)" title="Dashboard">Dashboard</a></li>
		</ul>
		-->
	
	</div></div>
	<!-- End status bar -->
	
	<div id="header-shadow"></div>
	<!-- End header -->
	
	<!-- Always visible control bar -->
	<div id="control-bar" class="grey-bg clearfix">
		
	</div>
	<!-- End control bar -->
	
	
	<!-- Content -->
	<article class="container_12">
	
	<?php
		$flash_message = $this->session->flashdata('message');
		if (!empty($flash_message)){
	?>
			<ul class="message success grid_12">
				<li><?=$flash_message?></li>
				<li class="close-bt"></li>
			</ul>
	<?php 
		}
	?>
